home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10351 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.unix.questions,comp.lang.c
  2. Path: news.sprintlink.net!news1!ts02-and-07
  3. From: dlmiller@iquest.net (Doug & Rose Miller)
  4. Subject: Re: Bold ASCII
  5. X-Nntp-Posting-Host: ts02-and-07.iquest.net
  6. Message-ID: <DoE3z8.Ht2@iquest.net>
  7. Sender: news@iquest.net (News Admin)
  8. Organization: IQuest Network Services
  9. X-Newsreader: News Xpress Version 1.0 Beta #2.1
  10. References: <4i7cpj$hqa@nexen.nexen.com> <31494BF9.1654@cs.bham.ac.uk> <DoBv4w.38B@polo.demon.co.uk>
  11. Date: Sun, 17 Mar 1996 02:18:19 GMT
  12.  
  13. john@polo.demon.co.uk (John Winters) wrote:
  14. +In article <31494BF9.1654@cs.bham.ac.uk>,
  15. +Tom (Ghoti) Kermode <txk@cs.bham.ac.uk> wrote:
  16. +>Matthew B. Doar wrote:
  17. +>>
  18. +>> Anyone know how to get bold strings of text
  19. +>> from a program (termcap related?)
  20. +>>
  21. +>> e.g.
  22. +>>
  23. +>> printf("\012 This is in bold \013\n");
  24. +>>
  25. +>> where \012 and \013 are whatever the magic ascii values
  26. +>> are to turn on and off bold.
  27. +>>
  28. +>> ~Matt
  29. +>
  30. +>The ascii values are \033[1m to turn bold on and \033[0m to turn it off.
  31. +>(out of interest)
  32. +
  33. +I don't *think* ASCII makes any definition of how to turn bold on and
  34. +off.  ISO/ANSI C certainly doesn't.
  35. +
  36. +John
  37. +
  38. +--
  39. +John Winters.  Wallingford, Oxon, England.
  40.  
  41. Correct.  There are no generic bold on/off codes.  All are device- and OS-specific.  The codes
  42. above work fine for output to the screen **on a PC running MS-DOS**.  Probably won't work
  43. on a PC running UNIX.  Certainly won't work on an IBM mainframe running MVS.  Equally
  44. certainly won't work for printer output on a PC running MS-DOS.
  45.